home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000294_fdc@columbia.edu_Fri May 14 15:58:01 2004.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
2KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Shut down server on disconnect
Date: 14 May 2004 19:52:51 GMT
Organization: Columbia University
Lines: 33
Message-ID: <slrncaa8sj.cbh.fdc@sesame.cc.columbia.edu>
References: <89WdndOf4PyJiDjd38DK-w@speakeasy.net>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1084564371 14754 128.59.59.56 (14 May 2004 19:52:51 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 14 May 2004 19:52:51 GMT
User-Agent: slrn/0.9.8.0 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15021
On 2004-05-14, Steve <stevebNoSpamPlease@comcast.com> wrote:
: Is there a setting to exit server mode when a file transfer coming in dies
: because of a disconnected phone line? I have a PC that I leave in server
: mode waiting for a remote PC to dial in and send files. I would like my PC
: to exit Server mode when I get a dropped line. If this is possible, what
: version of K95 do I need?
:
We always recommend the latest, which currently is 2.1.3:
http://www.columbia.edu/kermit/k95.html
http://www.columbia.edu/kermit/k95upgrade.html
Something like the following should work. The example assumes you want
to wait for call, enter server mode when it comes in, exit server mode
on disconnect (or when the user says BYE or FINISH), and then go back
and do it again:
set modem type usrobotics ; or whatever
set speed 57600 ; or whatever
set carrier-watch auto ; (this is the default)
while true { ; Repeatedly...
answer ; Wait for a call
if success server ; If no errors enter server mode
}
The SERVER command should return if the call disconnects or the user
explicitly terminates it. The ANSWER commands begins by hanging up
the phone (if off hook) and resetting the modem. SET CARRIER-WATCH AUTO
means that a Carrier signal is not required while waiting for the call
to come in, but once the phone is answered, Carrier is required; should
it drop, the active command (SERVER in this case) terminates.
- Frank